#include<stdio.h>
#include<windows.h>

int main()
{
	int a,b,c,i;
	for (i=100;i<=999;i++)
	{
		a=i/100;
		b=i/10%10;
		c=i%10;
		if (i==a*a*a+b*b*b+c*c*c)	
		printf("%d\n",i);
	}
	system("pause");
	return 0;
}
